import Vue from 'vue'

// 导入路由
import router from './router'

// 导入vue-resource
import VueResource from 'vue-resource'
Vue.use(VueResource);

Vue.http.options.root = 'http://localhost:3030/'

// 按需导入mintui的组件
import 'mint-ui/lib/style.css'
import { Header, Swipe, SwipeItem } from 'mint-ui';
Vue.component(Header.name, Header);
Vue.component(Swipe.name, Swipe);
Vue.component(SwipeItem.name, SwipeItem);

// 导入mui样式
import './lib/mui/css/mui.css'
import './lib/mui/css/icons-extra.css'
import './lib/mui/fonts/mui-icons-extra.ttf'

// 导入App.vue跟组建
import app from './App.vue'


new Vue({
    el: '#app',
    render: (c)=>c(app),
    router
})